
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgChildForm, NgChildFormArray, NgValidateForm } from '@farris/devkit';
import { DateConverter, MultiLangConverter } from '@farris/kendo-binding';

@Injectable()
@NgValidateForm({
    formGroupName: '组织人员',
    enableValidate: true
})

@Injectable()
export class Zzry3l1qComponentViewmodelForm extends Form {
    @NgFormControl({
        id: 'code',
        name: "{{code_a6d75869_hnpl}}",
        binding: 'code',
        updateOn: 'blur',
        defaultI18nValue: '编号',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    code: FormControl;

    @NgFormControl({
        id: 'name',
        name: "{{name_1ee71c9d_yroh}}",
        binding: 'name',
        updateOn: 'blur',
        defaultI18nValue: '名称',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    name: FormControl;

    @NgFormControl({
        id: 'state',
        name: "{{state_56d3a37a_it32}}",
        binding: 'state',
        updateOn: 'blur',
        defaultI18nValue: '状态',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    state: FormControl;

    @NgFormControl({
        id: 'organization',
        name: "{{organization_ecc31aa5_98zt}}",
        binding: 'organization',
        updateOn: 'blur',
        defaultI18nValue: '组织',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    organization: FormControl;

    @NgFormControl({
        id: 'gender',
        name: "{{gender_efdf97d3_7820}}",
        binding: 'gender',
        updateOn: 'blur',
        defaultI18nValue: '性别',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    gender: FormControl;

    @NgFormControl({
        id: 'countryOrArea',
        name: "{{countryOrArea_7467711d_p2w6}}",
        binding: 'countryOrArea',
        updateOn: 'blur',
        defaultI18nValue: '所属国家或地区',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    countryOrArea: FormControl;

}